using Godot;
using System;

public partial class StartSence : Control
{
  // Called when the node enters the scene tree for the first time.

  private Button _startGame;

  public override void _Ready()
  {
    _startGame = GetNode<Button>("Button");
    _startGame.Pressed += StartGame;
  }

  // Called every frame. 'delta' is the elapsed time since the previous frame.
  public override void _Process(double delta)
  {
  }

  private void StartGame()
  {
    GetTree().ChangeSceneToFile("res://Sences/choose_story.tscn");
  }
}
